package oop.ex1.filters;

//###############
//FILE : OrderFilter.java
//WRITER : Amir Wilf, wilfoa, 300007085
//WRITER : Daniel Acherkan, danithelion, 310116348
//EXERCISE : oop ex1 2011
//DESCRIPTION:
//An abstract class for filtering attributes who follow a 'good order'
//###############

public abstract class OrderFilter extends Filter {

	// DATA MEMBERS

	// specifies whether to filter something bigger '<' or smaller '>'
	protected boolean _direction;

	// *******
	// METHODS
	// *******

	/**
	 * Constructor for the class
	 * @param direction true is interpreted bigger '<' and false as smaller '>'
	 * @param not a boolean variable, defines whether this filter should be 
	 * negated (inverted).  
	 */
	public OrderFilter(boolean direction, boolean not) {
		super(not);
		_direction = direction;
	}

	/**
	 * the method that parses the parameter according to the compare will be
	 * made
	 * @param parameter the value to compare by
	 */
	protected abstract void parseParameter(String parameter);
}
